package com.lck.blogmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lck.blogmanager.entity.BlogCommentEntity;
import com.lck.blogmanager.req.PageBlogCommentReq;
import com.lck.blogmanager.res.UserBlogCommentPageRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface BlogCommentMapper extends BaseMapper<BlogCommentEntity> {

    Page<UserBlogCommentPageRes> getComments(@Param("req") PageBlogCommentReq req,
                                             Page page);

}
